document.writeln("	<!-- 左悬浮 -->");
document.writeln("	<ul id=\'TplFloatPic_0\' class=\'TplFloatSet\' picfloat=\'left\'>");
document.writeln("		<li>");
document.writeln("			<a>");
document.writeln("				<img src=\'images/adv01.png\' alt=\'\' class=\'png_fix\' align=\'middle\'>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a target=\'_blank\' class=\'onlineService\'>");
document.writeln("				<img src=\'images/adv02.png\' alt=\'\' class=\'png_fix\' align=\'middle\' />");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'javascript:;\' target=\'_blank\'>");
document.writeln("				<img src=\'images/adv03.png\' alt=\'\' class=\'png_fix\' align=\'middle\'>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'javascript:;\' target=\'_blank\'>");
document.writeln("				<img src=\'images/adv04.png\' alt=\'\' class=\'png_fix\' align=\'middle\'>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li >");
document.writeln("			<a href=\'javascript:;\' target=\'_blank\'>");
document.writeln("				<img src=\'images/adv05.png\' alt=\'\' class=\'png_fix\' align=\'middle\'>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'javascript:;\' target=\'_blank\'>");
document.writeln("				<img src=\'images/adv06.png\'>");
document.writeln("				<img src=\'images/code.png\' class=\'lCode\'>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("");
document.writeln("		<li onclick=\'FloatClose1()\'>");
document.writeln("			<a><img src=\'images/adv07.png\' alt=\'\' class=\'png_fix\' align=\'middle\'></a>");
document.writeln("		</li>");
document.writeln("");
document.writeln("	</ul>");
document.writeln("	<!-- 右悬浮 -->");
document.writeln("	<ul id=\'TplFloatPic_1\' class=\'TplFloatSet\' picfloat=\'right\'>");
document.writeln("		<li>");
document.writeln("			<a class=\'right01 onlineService\'>");
document.writeln("				<img src=\'images/service-gray.png\' alt=\'\' class=\'png_fix\' align=\'middle\'>");
document.writeln("				<span>在线客服</span>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a class=\'right02\' href=\'./register.html\' target=\'_blank\'>");
document.writeln("				<img src=\'images/zhuce.png\' alt=\'\' class=\'png_fix rzhuce-pic\' align=\'middle\'>");
document.writeln("				<span>点击注册</span>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a class=\'right01\' href=\'./recharge.html\' target=\'_blank\'>");
document.writeln("				<img src=\'images/full.png\' alt=\'\' class=\'png_fix\' align=\'middle\'>");
document.writeln("				<span>会员充值</span>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a class=\'right02 onlineService\'>");
document.writeln("				<img src=\'images/help.png\' alt=\'\' class=\'png_fix\' align=\'middle\'>");
document.writeln("				<span>帮助</span>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a class=\'right01\' href=\'./recharge.html\' target=\'_blank\' >");
document.writeln("				<img src=\'images/alipay.png\' alt=\'\' class=\'png_fix\' align=\'middle\'>");
document.writeln("				<span>支付宝微信</span>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("	</ul>");
var left_top = 130,
			right_top = 130,
			float_list = [],
			float_side = 5;
		$(window).load(function () {
			
			float_list['0'] = $('#TplFloatPic_0');
			float_list['1'] = $('#TplFloatPic_1');
			for (var i in float_list) {
				if (float_list[i].attr == undefined) {
					continue;
				}
				var self = float_list[i],
					picfloat = (self.attr('picfloat') == 'right') ? 1 : 0;
				self.show().Float({
					'floatRight': picfloat,
					'topSide': ((picfloat == 1) ? right_top : left_top),
					side: float_side
				});
				var w = 0;
				$.each(float_list['0'].find('img'), function () {
					var width = $(this).width()/1.3;
					w = (width > w) ? width : w; //取图片最大寬度
					$(this).attr({
						'width': width,
						'height': $(this).height()/1.3
					});
				});
				float_list['0'].css('width', w);
				if (picfloat) {
					right_top = right_top + 10 + (self.height() || 250);
				} else {
					left_top = left_top + 10 + (self.height() || 250);
				}
				$('#TplFloatPic_1 li a').hover(function(){
					$(this).animate({width:"170px"})				
				},function(){
					$(this).animate({width:"60px"})
				})
				$('a', float_list['0']).each(function () {
					$(this).css({
						'width': $(this).find('img:first').width(),
						'height': $(this).find('img:first').height()
					});
				});
			}
		});

		function FloatClose1() {
			$("#TplFloatPic_0").hide();
		}

		function FloatClose2() {
			$("#TplFloatPic_1").hide();
		}